
from django.urls import re_path, path
from django.contrib import admin
from django.conf.urls import include
from django.conf.urls.static import static
from django.conf import settings

urlpatterns = [
    path('admin/', admin.site.urls),
    # 根据不同app,请求去不同app的函数处理
    re_path(r'^user/', include('user.urls')),
    re_path(r'^order/', include('order.urls')),

] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
